//rock.zhang.cn@gmail.com

#include <stdio.h>
#include <stdlib.h>

const unsigned char cfgdata[]= {'a','a','a','a','a','a','a','a','a','a'};

int main()
{
    FILE *pFile;

    if((pFile=fopen("dns","a+"))==NULL)
    {
        printf("Cannot open file strike any key exit!");
        exit(1);
    }

	//go to end of file add the config section.
	fseek(pFile, 0L, SEEK_END);
	
    fwrite(cfgdata, 1,  sizeof(cfgdata), pFile );

    fclose(pFile);
    return 0;
}
